<%-- 
    Document   : List
    Created on : 16-gen-2015, 18.31.43
    Author     : takamflore
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
          <form action="InvitationServlet" method="POST" ></form>
    <br>
    <table border="1">
        <thead>
            <tr>
        <th> ID Invitation Request</th>
        <th> Event </th>
        <th> Accepted</th>
            </tr>
       </thead>
       <tbody>
        <c:forEach items="${invitations}" var="invitation">
            <tr>
                <td><c:out value="${invitation.Id}"/></td>
                <td><c:out value="${invitation.Event}"/></td>           
            </tr>
        </c:forEach>
       </tbody>
    </table>
    <td><a href="InvitationServlet?action=edit&inviation.Id=<c:out value="${invitation.Id}"/>">Accept</a></td>
    <td><a href="InvitationServlet?action=decline&inviation.Id=<c:out value="${inviation.Id}"/>">Decline</a></td>
    </body>
</html>
